import base from '@/api/baseurl';
import request from '@/utils/request'

export function fetchListBCvDirectReference(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCvDirectRef/findBCvDirectRef',
    method: 'get',
    params: query
  })
}

//单行删除
export function deleteBCvDirectReference(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCvDirectRef/delBCvDirectRef',
    method: 'get',
    params: query
  })
}


export function addBCvDirectReference(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCvDirectRef/addBCvDirectRef',
    method: 'post',
    data
  })
}

export function updateBCvDirectReference(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCvDirectRef/updateBCvDirectRef',
    method: 'post',
    data
  })
}

export function batchDeleteBCvDirectReference(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCvDirectRef/delManyBCvDirectRef',
    method: 'post',
    data
  })
}

// 查询所述法人，根据曲线code
export function tcDirectReferenceFindlpname(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCvDirectRef/findlpname',
    method: 'get',
    params: query
  })
}
//增加里的基础曲线下拉框
export function fetchListbccurve(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCvDirectRef/fetchListbccurve',
    method: 'get',
    params: query
  })
}


//同步
export function syncBCDirectReference(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCvDirectRef/syncBCvDirectRef',
    method: 'get',
    params: query
  })
}
